package com.stxx.stiot2.mqtt;

import lombok.extern.slf4j.Slf4j;
import org.dromara.mica.mqtt.server.solon.event.MqttClientOnlineEvent;
import org.noear.solon.annotation.Component;
import org.noear.solon.core.event.EventListener;

@Slf4j
@Component
public class MqttConnectOnlineListener implements EventListener<MqttClientOnlineEvent> {

    @Override
    public void onEvent(MqttClientOnlineEvent mqttClientOnlineEvent) throws Throwable {
        log.info("mqttClientOnlineEvent:{}", mqttClientOnlineEvent);
    }
}